package cn.wolfcode.crm.service;

import cn.wolfcode.crm.domain.Department;
import cn.wolfcode.crm.qo.PageResult;
import cn.wolfcode.crm.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IDepartmentService {
    void save(Department department);

    void delete(Long id);

    void update(Department department);

    Department selectOne(Long id);

    List<Department> listAll();

    List<Department> queryForData(QueryObject qo);

    PageInfo<Department> query(QueryObject qo);

    //int queryForCount(QueryObject qo);
}
